package filesystem.factorymethod;


import filesystem.factorymethod.factory.IFactory;
import filesystem.factorymethod.factory.impl.DBFactory;
import filesystem.factorymethod.factory.impl.FileFactory;
import filesystem.simplefactory.FileSave;

public class IFactoryTest {
    public static void main(String[] args) {
        IFactory file=new FileFactory();
        FileSave connect = file.getConnect();
        connect.save("1234");
        IFactory file1=new DBFactory();
        FileSave connect1 = file1.getConnect();
        connect1.save("1234");
    }
}